import service from '@/utils/request'
// @Tags ServiceOrders
// @Summary 创建serviceOrders表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ServiceOrders true "创建serviceOrders表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /serviceOrders/createServiceOrders [post]
export const createServiceOrders = (data) => {
  return service({
    url: '/serviceOrders/createServiceOrders',
    method: 'post',
    data
  })
}

// @Tags ServiceOrders
// @Summary 删除serviceOrders表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ServiceOrders true "删除serviceOrders表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serviceOrders/deleteServiceOrders [delete]
export const deleteServiceOrders = (params) => {
  return service({
    url: '/serviceOrders/deleteServiceOrders',
    method: 'delete',
    params
  })
}

// @Tags ServiceOrders
// @Summary 批量删除serviceOrders表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除serviceOrders表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serviceOrders/deleteServiceOrders [delete]
export const deleteServiceOrdersByIds = (params) => {
  return service({
    url: '/serviceOrders/deleteServiceOrdersByIds',
    method: 'delete',
    params
  })
}

// @Tags ServiceOrders
// @Summary 更新serviceOrders表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ServiceOrders true "更新serviceOrders表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /serviceOrders/updateServiceOrders [put]
export const updateServiceOrders = (data) => {
  return service({
    url: '/serviceOrders/updateServiceOrders',
    method: 'put',
    data
  })
}

// @Tags ServiceOrders
// @Summary 用id查询serviceOrders表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.ServiceOrders true "用id查询serviceOrders表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /serviceOrders/findServiceOrders [get]
export const findServiceOrders = (params) => {
  return service({
    url: '/serviceOrders/findServiceOrders',
    method: 'get',
    params
  })
}

// @Tags ServiceOrders
// @Summary 分页获取serviceOrders表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取serviceOrders表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /serviceOrders/getServiceOrdersList [get]
export const getServiceOrdersList = (params) => {
  return service({
    url: '/serviceOrders/getServiceOrdersList',
    method: 'get',
    params
  })
}

// @Tags ServiceOrders
// @Summary 不需要鉴权的serviceOrders表接口
// @Accept application/json
// @Produce application/json
// @Param data query equipment_maintenanceReq.ServiceOrdersSearch true "分页获取serviceOrders表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /serviceOrders/getServiceOrdersPublic [get]
export const getServiceOrdersPublic = () => {
  return service({
    url: '/serviceOrders/getServiceOrdersPublic',
    method: 'get',
  })
}
